/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PlayerSleepPanel.java
 *
 * Created on Dec 7, 2009, 2:04:49 PM
 */

package com.bff.slimserver.musicjukebox.ui.components;

import com.bff.bjj.ui.component.BJJPanel;
import org.bff.slimserver.SlimPlayer;

/**
 *
 * @author Bill
 */
public class PlayerSleepPanel extends BJJPanel {

    private SlimPlayer player;

    /** Creates new form PlayerSleepPanel */
    public PlayerSleepPanel(SlimPlayer player) {
        initComponents();

        setPlayer(player);

    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        lblSleepTime = new javax.swing.JLabel();

        setLayout(new java.awt.GridBagLayout());

        jLabel1.setText("Current Sleep Time:");
        add(jLabel1, new java.awt.GridBagConstraints());

        lblSleepTime.setText("0 seconds");
        add(lblSleepTime, new java.awt.GridBagConstraints());
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @return the player
     */
    public SlimPlayer getPlayer() {
        return player;
    }

    /**
     * @param player the player to set
     */
    public void setPlayer(SlimPlayer player) {
        this.player = player;
    }


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel lblSleepTime;
    // End of variables declaration//GEN-END:variables

}
